package com.cnc.ssm.model;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** @author Hibernate CodeGenerator */
public class PwInst implements Serializable {

    /** identifier field */
    private String instCode;

    /** persistent field */
    private String instName;

    /** nullable persistent field */
    private String superInstCode;

    /** nullable persistent field */
    private String instLevel;

    /** nullable persistent field */
    private String instType;

    /** nullable persistent field */
    private String instStatus;

    /** nullable persistent field */
    private String instDescribe;

    /** nullable persistent field */
    private String instAddr;

    /** nullable persistent field */
    private String instPost;

    /** nullable persistent field */
    private String stateCode;

    /** nullable persistent field */
    private String cityCode;

    /** nullable persistent field */
    private String enInstName;

    /** nullable persistent field */
    private String enInstAddr;

    /** nullable persistent field */
    private String instTel;

    /** nullable persistent field */
    private String instFax;

    /** nullable persistent field */
    private String instEmail;

    /** nullable persistent field */
    private String contact;

    /** full constructor */
    public PwInst(java.lang.String instCode, java.lang.String instName, java.lang.String superInstCode, java.lang.String instLevel, java.lang.String instType, java.lang.String instStatus, java.lang.String instDescribe, java.lang.String instAddr, java.lang.String instPost, java.lang.String stateCode, java.lang.String cityCode, java.lang.String enInstName, java.lang.String enInstAddr, java.lang.String instTel, java.lang.String instFax, java.lang.String instEmail, java.lang.String contact) {
        this.instCode = instCode;
        this.instName = instName;
        this.superInstCode = superInstCode;
        this.instLevel = instLevel;
        this.instType = instType;
        this.instStatus = instStatus;
        this.instDescribe = instDescribe;
        this.instAddr = instAddr;
        this.instPost = instPost;
        this.stateCode = stateCode;
        this.cityCode = cityCode;
        this.enInstName = enInstName;
        this.enInstAddr = enInstAddr;
        this.instTel = instTel;
        this.instFax = instFax;
        this.instEmail = instEmail;
        this.contact = contact;
    }

    /** default constructor */
    public PwInst() {
    }

    /** minimal constructor */
    public PwInst(java.lang.String instCode, java.lang.String instName) {
        this.instCode = instCode;
        this.instName = instName;
    }

    public java.lang.String getInstCode() {
        return this.instCode;
    }

    public void setInstCode(java.lang.String instCode) {
        this.instCode = instCode;
    }

    public java.lang.String getInstName() {
        return this.instName;
    }

    public void setInstName(java.lang.String instName) {
        this.instName = instName;
    }

    public java.lang.String getSuperInstCode() {
        return this.superInstCode;
    }

    public void setSuperInstCode(java.lang.String superInstCode) {
        this.superInstCode = superInstCode;
    }

    public java.lang.String getInstLevel() {
        return this.instLevel;
    }

    public void setInstLevel(java.lang.String instLevel) {
        this.instLevel = instLevel;
    }

    public java.lang.String getInstType() {
        return this.instType;
    }

    public void setInstType(java.lang.String instType) {
        this.instType = instType;
    }

    public java.lang.String getInstStatus() {
        return this.instStatus;
    }

    public void setInstStatus(java.lang.String instStatus) {
        this.instStatus = instStatus;
    }

    public java.lang.String getInstDescribe() {
        return this.instDescribe;
    }

    public void setInstDescribe(java.lang.String instDescribe) {
        this.instDescribe = instDescribe;
    }

    public java.lang.String getInstAddr() {
        return this.instAddr;
    }

    public void setInstAddr(java.lang.String instAddr) {
        this.instAddr = instAddr;
    }

    public java.lang.String getInstPost() {
        return this.instPost;
    }

    public void setInstPost(java.lang.String instPost) {
        this.instPost = instPost;
    }

    public java.lang.String getStateCode() {
        return this.stateCode;
    }

    public void setStateCode(java.lang.String stateCode) {
        this.stateCode = stateCode;
    }

    public java.lang.String getCityCode() {
        return this.cityCode;
    }

    public void setCityCode(java.lang.String cityCode) {
        this.cityCode = cityCode;
    }

    public java.lang.String getEnInstName() {
        return this.enInstName;
    }

    public void setEnInstName(java.lang.String enInstName) {
        this.enInstName = enInstName;
    }

    public java.lang.String getEnInstAddr() {
        return this.enInstAddr;
    }

    public void setEnInstAddr(java.lang.String enInstAddr) {
        this.enInstAddr = enInstAddr;
    }

    public java.lang.String getInstTel() {
        return this.instTel;
    }

    public void setInstTel(java.lang.String instTel) {
        this.instTel = instTel;
    }

    public java.lang.String getInstFax() {
        return this.instFax;
    }

    public void setInstFax(java.lang.String instFax) {
        this.instFax = instFax;
    }

    public java.lang.String getInstEmail() {
        return this.instEmail;
    }

    public void setInstEmail(java.lang.String instEmail) {
        this.instEmail = instEmail;
    }

    public java.lang.String getContact() {
        return this.contact;
    }

    public void setContact(java.lang.String contact) {
        this.contact = contact;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("instCode", getInstCode())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof PwInst) ) return false;
        PwInst castOther = (PwInst) other;
        return new EqualsBuilder()
            .append(this.getInstCode(), castOther.getInstCode())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getInstCode())
            .toHashCode();
    }

}
